<template>

</template>

<script>
const cityOptions = ['上海', '北京', '广州', '深圳'];
export default {
  props: {

  },
  data () {
    return {
      innerForm: {
        cities: cityOptions,
        name: '',
        phone: '',
        card: '',
        isIndeterminate: true,
        textarea: '',
        checkedCities: [],
        id: '',
        checkAll: false,
      },
      innerDrawer: false,
      card: [
        {
          value: '选项1',
          label: '身份证'
        },
        {
          value: '选项2',
          label: '通行证'
        }
      ],
    }
  },
  methods: {
    GoBack () {
      this.innerDrawer = false

    },
    handleCheckAllChange (val) {
      this.checkedCities = val ? cityOptions : [];
      this.isIndeterminate = false;
    },
    handleCheckedCitiesChange (value) {
      let checkedCount = value.length;
      this.checkAll = checkedCount === this.cities.length;
      this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;
    },
  }
}
</script>

<style>
</style>